//
//  TapImageView.m
//  MusicPlayer
//
//  Created by lanou on 15/12/2.
//  Copyright © 2015年 Morrrah. All rights reserved.
//

#import "TapImageView.h"

@implementation TapImageView

- (instancetype)initWithFrame:(CGRect)frame target:(id)target action:(SEL)action
{
    if (self = [super initWithFrame:frame]) {
        self.userInteractionEnabled = YES;
        UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]initWithTarget:target action:action];
        [self addGestureRecognizer:tap];
    }
    return self;
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
